package com.cookor.poi.modules.phy.service;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.common.persistence.Page;
import com.cookor.poi.common.service.CrudService;
import com.cookor.poi.modules.phy.dao.TDoctorDao;
import com.cookor.poi.modules.phy.entity.TDoctor;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TDoctorService extends CrudService<TDoctorDao, TDoctor> {
  public TDoctor get(String id) {
    return (TDoctor)super.get(id);
  }
  
  public List<TDoctor> findList(TDoctor tDoctor) {
    return super.findList( tDoctor);
  }
  
  public Page<TDoctor> findPage(Page<TDoctor> page, TDoctor tDoctor) {
    return super.findPage(page,  tDoctor);
  }
  
  @Transactional(readOnly = false)
  public void save(TDoctor tDoctor) {
    super.save( tDoctor);
  }
  
  @Transactional(readOnly = false)
  public void delete(TDoctor tDoctor) {
    super.delete( tDoctor);
  }
}
